<%--
  Created by IntelliJ IDEA.
  User: acer
  Date: 2024/9/18
  Time: 15:41
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=utf-8" language="java"  import="java.util.*" %>
<html>
<head>
    <meta charset="UTF-8">
    <title>使用request内置对象获取信息</title>
</head>
<body bgcolor="#ccffcc">
    <h1>你刚才输入的内容是:</h1>
<%
    Enumeration enu = request.getParameterNames();
    while (enu.hasMoreElements()) {
        String parameterName = (String) enu.nextElement();
        String parameterValue = request.getParameter(parameterName);
        out.print("参数名称:"+parameterName+"<br>");
        out.println("参数名称:"+parameterValue+"<br>");
        }
%>
</body>
</html>
